#include <iostream>

#include "AutoKeyStore/AutoKeyStore.h"

using namespace std;

int main(int argc, char *argv[])
{
    AutoKeyStore aks;
    string out;
    try
    {
	aks.getValue("blackboard.ip", out);
	cout << "YES: " << out << endl;
	aks.getValue("blackboard.ip", out);
	cout << "YES: " << out << endl;
	aks.getValue("blackboard.iz", out);
	cout << "YES: " << out << endl;
	aks.getValue("blackboard.port", out);
	cout << "YES: " << out << endl;
	list<string> l;
	l.push_back("blackboard.ip");
	l.push_back("blackboard.port");
	map<string, string> m;
	aks.getValues(l, m);
	cout << "YES: " << m["blackboard.ip"] << ":" << m["blackboard.port"];
    }
    catch (const AutoKeyStoreException& ex)
    {
	cout << ex.what() << endl;
    }




    return 0;
}



